package com.szjlc.mybatis.sqlinterceptor.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 客户表(t_customer)实体类
 * @author makejava
 * @since 2022-11-28 23:30:09
 */

@SuppressWarnings("all")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("t_customer")
public class Customer implements Serializable {

    private static final long serialVersionUID = 850848758727953067L;

    /** 客户编号id，主键 */
    @TableId(value = "customer_id")
    private Integer customerId;

    /** 客户名称 */
    @NotBlank(message = "客户名称不能为空")
    @TableField(value = "customer_name")
    private String customerName;

    /** 联系人 */
    @TableField(value = "contacts")
    private String contacts;

    /** 联系人电话 */
    @TableField(value = "phone_number")
    private String phoneNumber;

    /** 客户地址 */
    @TableField(value = "address")
    private String address;

    /** 备注 */
    @TableField(value = "remarks")
    private String remarks;


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }


}
